package no.ntnu.fp.handlers.exceptions;

import java.io.IOException;
import java.sql.SQLException;

import no.ntnu.fp.model.Employee;

@SuppressWarnings("serial")
public class DatabaseException extends RuntimeException {
	public DatabaseException(String message, SQLException cause) {
		super(message, cause);
	}

	@Override
	public String getLocalizedMessage() {
		return "Database exception: " + super.getLocalizedMessage() +
			"\n\nCause: " + getCause();
	}
}
